﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Diagnostics.CodeAnalysis;

namespace CoolEngine.Gui
{
    public class Window : GuiControl
    {
        public Label TitleLabel { get; set; }
        public Panel Body { get; set; }
        public string Title { get { return TitleLabel.Text; } set { TitleLabel.Text = value; } }
        [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Colour", Justification = "Learn to spell.")]
        public Color BackgroundColour { get; set; }
        //public Window()
        //    : base()
        //{
        //    TitleLabel = new Label();
        //    Body = new Panel();
        //    BackgroundColour = Color.LightGray;
        //}
        public Window(CoolGame game, GuiRenderer renderer)
            : base(game, renderer)
        {
            TitleLabel = new Label(game, renderer);
            Body = new Panel(game, renderer);
            BackgroundColour = Color.LightGray;
        }
        public Window(CoolGame game, GuiRenderer renderer, GuiControl parent)
            : base(game, renderer, parent)
        {
            TitleLabel = new Label(game, renderer);
            Body = new Panel(game, renderer);
            BackgroundColour = Color.LightGray;
        }

        protected override void InitializeComponent()
        {

        }
    }
}
